package com.pan.structual.decorator.decorator;

import com.pan.structual.decorator.frame.MyFrame;

import javax.swing.*;

public abstract class MyFrameDecorator implements MyFrame {

    protected MyFrame myframe;

    public MyFrameDecorator(MyFrame frame){
        this.myframe = frame;
    }

    @Override
    public void disposition() {
        myframe.disposition();
    }

    @Override
    public void use() {
        myframe.use();
    }

    @Override
    public JFrame getFrame() {
        return myframe.getFrame();
    }
}
